package com.zpark.controller;

import com.zpark.entity.patients.PatientVitals;
import com.zpark.service.PatientVitalsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/patient-vitals")
public class PatientVitalsController {

    @Autowired
    private PatientVitalsService patientVitalsService;

    @GetMapping("/all")
    public List<PatientVitals> getAllPatientVitals() {
        return patientVitalsService.list();
    }
}